﻿using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;

namespace Api.UserService.Controllers
{
    [Authorize("TestPolicy")]
    [Route("api/[controller]")]
    [ApiController]
    public class HealthController : ControllerBase
    {
        private readonly ILogger<HealthController> _logger;
        public HealthController(ILogger<HealthController> logger)
        {
            _logger = logger;
        }

        /// <summary>
        /// 我是Check
        /// </summary>
        /// <returns></returns>
        [HttpGet("check")]
        public string GetHealth()
        {
            return "我是Check";
        }




    }
}
